<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>history</title>
</head>
<body>

<!--1. history.html -->
<!--2. location.html -->

<a href="2.location.html">location</a>
<button id="btnNext">下一页</button>
</body>

<script>
   var btnNext=  document.getElementById('btnNext');

   btnNext.onclick = function (){

        history.forward();
   }

</script>
</html>